<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductList extends Model
{
    protected $table = 'product_list';
    //设置主键值
    protected $primaryKey = 'id';
    public $timestamps = false;

    protected $guarded = [];

    public function product_order()
    {
        return $this->belongsTo(ProductOrder::class, 'id', 'order_id');
    }
}
